import Vue from "vue"  //Vue是自己起的变量别名  "vue"  默认是rutime.vue版本
import VueRouter from 'vue-router'
Vue.use(VueRouter)
import app from './app'
import router from './router'

import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
Vue.use(MintUI)
import VueReurse from 'vue-resource'
Vue.use(VueReurse)
Vue.http.options.root = 'http://www.liulongbin.top:3005';
Vue.http.options.emulateJSON = true
import VuePreview from 'vue2-preview'
Vue.use(VuePreview)
import './lib/mui-master/dist/css/mui.min.css'
import './lib/mui-master/dist/css/icons-extra.css'
import './lib/mui-master/dist/fonts/mui-icons-extra.ttf'
import moment from 'moment'

Vue.filter('timeFormat',function(timeStr,pattern='YYYY-MM-DD HH:MM'){
    return moment(timeStr).format(pattern)
})
var vm = new Vue({
    el: "#app",
    data() {
        return {
            msg: 'aaa'
        }
    },
    render(h) {
        return h(app)
    },
    router
})